package com.appkubes.mall.restful.application.system.config.dao;

import com.appkubes.mall.core.dao.BaseMallSystemConfigDao;
import com.appkubes.mall.core.entity.MallSystemConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ConfigDao extends BaseMallSystemConfigDao {
    @Select({"<script>",
            "SELECT * FROM `mall_system_config` WHERE `app_key`=#{appKey} AND `config_key`=#{key}",
            "</script>"})
    MallSystemConfig getConfig(@Param("appKey") String appKey, @Param("key") String key);
}
